import ReactDOM from 'react-dom/client';
import { ConfigProvider } from 'antd';
import App from './App';

if (document.getElementById('root')) {
  const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);

  root.render(
    <ConfigProvider
      theme={{
        token: {
          colorPrimary: '#00b96b', // 自定义主题色
          borderRadius: 4,         // 自定义圆角
        },
      }}
    >
      <App />
    </ConfigProvider>
  );
}